//
//  TYZButton.m
//  TYZ_SC
//
//  Created by 李贤立 on 2017/12/12.
//  Copyright © 2017年 Capfer. All rights reserved.
//

#import "TYZButton.h"

@implementation TYZButton

/**
 *  创建标签框Button
 *
 *  @param frame            坐标
 *  @param title            标签文字
 *  @param backgroundColor  背景颜色
 */
- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title backgroundColor:(UIColor *)backgroundColor {
    if (self = [super initWithFrame:frame]) {
        [self setTitle:title forState:UIControlStateNormal];
        self.layer.cornerRadius = 5;
        self.layer.masksToBounds = YES;
        self.layer.borderColor = TYZColor(185, 186, 196).CGColor;
        self.layer.borderWidth = 1.0;
        self.backgroundColor = backgroundColor;
    }
    return self;
}

@end
